<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="index.jsp">首页</a>
	<table border="1px">
		<tr>
			<th>书籍编号</th>
			<th>类型编号</th>
			<th>书籍名称</th>
			<th>作者昵称</th>
			<th>书籍封面</th>
			<th>书籍简介</th>
			<th>人气值</th>
			<th>最新章节</th>
			<th>更新时间</th>
			<th>阅读进度</th>
			<th>总字数</th>
			<th>连载或完结</th>
		</tr>
		<c:forEach items="${datas.data }" var="book">
			<tr>
				<td>${book.book_id }</td>
				<td>${book.type_id }</td>
				<td>${book.book_name }</td>
				<td>${book.author_name }</td>
				<td><img alt="jpg" src="http://192.168.10.160${book.book_cover }"></td>
				<td style="width:300px">${book.book_introduction }</td>
				<td>${book.popularity }</td>
				<td>${book.latest_chapter }</td>
				<td>${book.update_time }</td>
				<td>${book.reading_progress }</td>
				<td>${book.total_word }</td>
				<td>${book.state_id }</td>
			</tr>
		</c:forEach>
	</table>
	<a href="init_book?page=1">首页</a>
	<a href="init_book?page=${datas.prev }">上一页</a>
	<a href="init_book?page=${datas.next }">下一页</a>
	<a href="init_book?page=${datas.total }">尾页</a>
</body>
</html>